package com.pashanhoo.designpatterns.singleton.singleton2.lazy;

import java.lang.reflect.Constructor;

/**
 * @author 胡庆安
 * @version V1.0
 * @Package com.pashanhoo.designpatterns.singleton.singleton2.lazy
 * @date 2021/1/19 15:15
 * @Copyright © 2010-2021 爬山虎科技（扬州）有限公司
 */
public class LazySimpleSingletionTest {
    public static void main(String[] args) {
        try {
            Class<?> aClass = LazyStaticInnerClassSingleton.class;
            Constructor<?> declaredConstructor = aClass.getDeclaredConstructor(null);
            declaredConstructor.setAccessible(true);
            Object o = declaredConstructor.newInstance();
            System.out.println(o);
        } catch (Exception e) {
            e.printStackTrace();
        }

    }
}
